<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>教师信息录入</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <link rel="icon" th:href="@{/favicon.ico}">
    <link rel="shortcut icon" th:href="@{/favicon.ico}">
    <link type="text/css"  th:href="@{/css/index.css}" rel="stylesheet"  />
    <script th:src="@{/js/jQuery1.7.2.js}" type="text/javascript"></script>
    <script th:src="@{/js/info.js}" type="text/javascript"></script>
</head>
<body>
    <div class="mian_center">
        <span class="main_titile"><img th:src="@{/images/login_j_03.png}">教师信息录入</span>
        <div class="main_info">
            <form th:action="@{/teacher/add}" method="post">
                <ul class="fl">
                    <li><span class="msg">[[${teacherId}]]&nbsp;&nbsp;[[${msg}]]</span></li>
                    <li><span>教师名称:</span>
                        <input type="text" name="teacherName" required="required" autocomplete="off">
                        <span class="msg">[[${teacherName}]]</span>
                    </li>
                    <li><span>教师专业:</span>
                        <select id="showClassroom" name="teacherType">
                            <option selected="selected" value="0">【请选择】</option>
                            <option th:if="${courseTypes!=null}" th:each="type : ${courseTypes}" th:value="${type.courseTypeId}">[[${type.courseTypeName}]]</option>
                        </select>
                        <span class="msg">[[${teacherType}]]</span>
                    </li>
                    <li><span>教师性别:</span>
                        <select name="teacherSex">
                            <option selected="selected" value="0">【请选择】</option>
                            <option value="1">男</option>
                            <option value="2">女</option>
                        </select>
                        <span class="msg">[[${teacherSex}]]</span>
                    </li>
                    <li><span>教师年龄:</span>
                        <input type="text" name="teacherAge" required = "required" autocomplete="off">
                        <span class="msg">[[${teacherAge}]]</span>
                    </li>
                    <li><span>上课教室:</span>
                        <select name="teacherClassRoom" id="teacher_classroom">
                            <option selected="selected" value="0">【请选择】</option>
                        </select>
                        <span class="msg">[[${teacherClassRoom}]]</span>
                    </li>
                    <li><span>电话号码:</span>
                        <input type="text" name="teacherPhone" required = "required" maxlength="11" autocomplete="off">
                        <span class="msg">[[${teacherPhone}]]</span>
                    </li>

                </ul>
                <div class="clear"></div>
                <div class="main_btn">
                    <input type="hidden" name="teacherId" value="0">
                    <input class="save" type="submit" value="保存">
                </div>
            </form>
        </div>
    </div>
</body>
</html>